package com.example.demo.sys.service.bo;

import com.example.demo.sys.entity.Role;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class RoleBO {
    private Integer id;
    private String name;
    private String description;

    public static RoleBO convert(Role item) {
        if (item == null) {
            return null;
        }
        RoleBO result = new RoleBO();
        BeanUtils.copyProperties(item,result);

        return result;
    }
}
